import { HouseEntity } from "@/entities/HouseEntity";

export declare namespace LeaseEntity {
  interface IHouseLease
    extends Omit<HouseEntity.IResultHouse, "name" | "status"> {
    /**
     * 房屋名字
     */
    houseName: string;
    /**
     * 房东名字
     */
    landlordName: string;
    /**
     * 房东头像
     */
    landlordImg: string;
    /**
     * 租赁申请状态 -> 状态：-1（未处理），0（已驳回），1（已通过）
     */
    status: number;
    /**
     * 租赁记录id
     */
    leaseId: number;
    /**
     * 房东手机号
     */
    landlordPhone: string;
    /**
     * 租客id
     */
    tenantId: number;
  }

  interface IPendingLease {
    houseId: number;
    houseName: string;
    houseAddress: string;
    tenantId: number;
    tenantHeadImg: string;
    tenantName: string;
    tenantPhone: string;
    landlordId: number;
    leaseDate: Date;
    leaseMonths: number;
  }

  interface ILeasePure {
    id: number;
    houseId: number;
    landlordId: number;
    tenantId: number;
    status: number;
    createdAt: Date;
    updatedAt: Date;
  }

  interface IExistLease extends IPendingLease {}
}
